{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle} </a>
    </td>
    <td class="action_buttons" nowrap>
      <a href="{$PHPSELF}?mod={$mod}&action=create"><img src="skins/{$DefaultSkin}/images/add.png" style="border: 0px; vertical-align: bottom;" alt="Create New FAQ" title="Create New FAQ"></a>
      <!--
      <a href="{$PHPSELF}?mod={$mod}&action=modify"><img src="skins/{$DefaultSkin}/images/modify.gif" style="border: 0px; vertical-align: bottom;" alt="Modify Selected FAQ" title="Modify Selected FAQ"></a>
      <a href="{$PHPSELF}?mod={$mod}&action=delete"><img src="skins/{$DefaultSkin}/images/delete.gif" style="border: 0px; vertical-align: bottom;" alt="Delete Selected FAQ" title="Delete Selected FAQ"></a>
        -->
    </td>
  </tr>
</table>
<br />

{if $message != ''}
<table width="100%" class="message_tbl">
  <tr>
    <td style="vertical-align: bottom;" width="20">
      <img src="skins/{$DefaultSkin}/images/notice.png">
    </td>
    <td class="message" nowrap>
      {$message}
    </td>
  </tr>
</table>
<br />
{/if}

<table cellspacing="1" class="index_body">
  <tr>
    <td class="row3 one">id</td>
    <td class="row3 two">title & desc</td>
    <td class="row3 two"><center>status</center></td>
    <td class="row3 two">access</td>
    <td class="row3 two"><center>groups</center></td>
    <td class="row3 two" nowrap>user post?</td>
    <td class="row3 two" nowrap><center>order</center></td>
    <td class="row3 two" colspan="2" nowrap><center>faq actions</center></td>
    <td class="row3 two" nowrap colspan="2"><center>category</center></td>
  </tr>
  {section name=FAQListing loop=$FAQListing}
  <tr>
    <td class="row{$FAQListing[FAQListing].faq_row} one">{$FAQListing[FAQListing].faq_id}</td>
    <td class="row{$FAQListing[FAQListing].faq_row} two">
      <h3>{$FAQListing[FAQListing].faq_title}</h3>
      {$FAQListing[FAQListing].faq_desc}<br />
    </td>
    <td class="row{$FAQListing[FAQListing].faq_row} two" nowrap>
      {if $FAQListing[FAQListing].faq_aclaccess == '1'}
        {if $FAQListing[FAQListing].faq_status == '1'}
          <a href="{$PHP_SELF}?mod={$mod}&faq={$FAQListing[FAQListing].faq_id}&action=chstatus&posted=0">disable</a>
        {else}
          <a href="{$PHP_SELF}?mod={$mod}&faq={$FAQListing[FAQListing].faq_id}&action=chstatus&posted=1">enable</a>
        {/if}
      {/if}
    </td>
    <td class="row{$FAQListing[FAQListing].faq_row} one">{$FAQListing[FAQListing].faq_public}</td>
    <td class="row{$FAQListing[FAQListing].faq_row} one">
      {if $FAQListing[FAQListing].group_access == '1' && $FAQListing[FAQListing].faq_public != 'public'}
        yes
      {elseif $FAQListing[FAQListing].group_access == '1' && $FAQListing[FAQListing].faq_public == 'public'}
        not required
      {else}
        <font color=red>no groups assigned</font>
      {/if}
    </td>
    <td class="row{$FAQListing[FAQListing].faq_row} one">{$FAQListing[FAQListing].faq_allow_user_posts}</td>
    <td class="row{$FAQListing[FAQListing].faq_row} one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=move&posted=-15&faq={$FAQListing[FAQListing].faq_id}">move up</a><br />
      <a href="{$PHP_SELF}?mod={$mod}&action=move&posted=15&faq={$FAQListing[FAQListing].faq_id}">move down</a>
    </td>
    <td class="row{$FAQListing[FAQListing].faq_row} one">
      {if $FAQListing[FAQListing].faq_aclaccess == '1'}
        <a href="{$PHP_SELF}?mod={$mod}&action=modify&faq={$FAQListing[FAQListing].faq_id}">modify</a>
      {/if}
    </td>
    <td class="row{$FAQListing[FAQListing].faq_row} one">
      {if $FAQListing[FAQListing].faq_aclaccess == '1'}
        <a href="{$PHP_SELF}?mod={$mod}&action=delete&faq={$FAQListing[FAQListing].faq_id}">delete</a>
      {/if}
    </td>
    <td class="row3 one">
      {if $FAQListing[FAQListing].faq_aclaccess == '1'}
        <a href="{$PHP_SELF}?mod=categories&action=create&faq={$FAQListing[FAQListing].faq_id}">create</a>
      {/if}
    </td>
    <td class="row3 one">
      {if $FAQListing[FAQListing].faq_aclaccess == '1'}
        <a href="{$PHP_SELF}?mod=categories&faq={$FAQListing[FAQListing].faq_id}">manage</a>
      {/if}
    </td>
  </tr>
  {/section}
</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}